from rest_framework import serializers
from goods.models import Brand


class BrandSerializer(serializers.ModelSerializer):
    """ 品牌 模型类序列化器 """

    class Meta:
        model = Brand
        fields = ["id", "name", "logo", "first_letter"]
